package com.testing.thread;


import java.util.concurrent.TimeUnit;

/**
 * @author Administrator
 */
public class T01_Class {

    private static boolean res = true;

    public static void m(){
        System.out.println("开始启动");
        while (res){
        }
        System.out.println("end");
    }

    public static void main(String[] args) throws Exception {
        new Thread(T01_Class::m, "t1").start();

        TimeUnit.MICROSECONDS.sleep(1);

        res = false;

        System.in.read();
    }
}
